home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / sviluppo / svilupp2 / hw2sgfx2.rdm < prev    next >
Text File  |  1997-01-18  |  2KB  |  56 lines

  1. Short:    Part2 of How2UseGfxV39
  2. Author:   jschober@campusart.com (Jürgen Schober)
  3. Uploader: jschober@campusart.com (Jürgen Schober)
  4. Type:     dev/src
  5. Date:     96/11/30
  6.  
  7. This archive contains some example material how scrolling
  8. bitmaps could be handled. It is just an example how things 
  9. could be done, because I am bretty sure, none of you will
  10. use ScollLayers() in a SuperBitmap window for a real application.
  11. But with a fast board (e.g. a PiccoloSD64) and a good driver
  12. (e.g. EGSPlus :) it shows what could be done if the Amiga
  13. would have the right chips.
  14. This demo opens a 320x256 window on any screen (currently a
  15. WB clone or the WB itself) with a 640x512 custom superbitmap
  16. attached to it. The backdrop is a 256 color image (640x512)
  17. which is scrolled thru the window. On top of it a green ball is
  18. jumping around. Both images where created in 24 bit and color
  19. reduced to 256 colors. The real colors are calculated on startup 
  20. using a shared palette. It looks best when run on a 256 color
  21. screen (but will reduce the colors if less). It should run on any
  22. board (ECS/AGA too) but isn't really useable on native amiga chips...
  23. I haven't tried CyberGraphics yet (but I should) but I think it
  24. would run more smoothly on EGS systems (with EGSPlus) since
  25. the SuperBitMap is held in boardmemory in this case which makes
  26. the scrolling much better :)
  27.  
  28. It does no buffer blitting yet (e.g. double buffer, refresh buffer or such).
  29. And it does not use an custom scrolling code, which would sure
  30. help for slow boards...(e.g. a delta frame scrolling would be a lot
  31. faster).
  32. But maybe you find some things what would be intuitiv for your ideas.
  33. So check it out ... and if you have a fast EGS board enjoy :)
  34.  
  35. PS.: I haven't either included the Backdground image nor the Image source
  36. since this have about 1.2 MB...the object code should be ok if
  37. you want to recompile it.
  38. The colortableformat is a modified Amiga Colortable format
  39. and looks like this:
  40.  
  41. struct Colors
  42. {
  43.     ULONG red,green,blue; // left justified 32 bits
  44. } colors[256];
  45.  
  46. all other things should be clear from the source code. You should be
  47. able to hook another image in ...
  48.  
  49. ---
  50. Jürgen Schober
  51. Graz · Austria
  52. e-mail: point@sbox.tu-graz.ac.at (private)
  53.         jschober@campusart.com   (business)
  54. WWW:    http://www.sbox.tu-graz.ac.at/home/point/Welcome.html
  55.         http://www.pointdesign.campusart.com/
  56.